package com.yuyou.train.admin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yuyou.train.admin.mapper.CommDataConfigMapper;
import com.yuyou.train.admin.service.ICommDataConfigService;
import com.yuyou.train.service.api.admin.entity.CommDataConfig;

@Service
public class CommDataConfigServiceImpl implements ICommDataConfigService {

	@Autowired
	private CommDataConfigMapper commDataConfigMapper;
	
	@Override
	public int deleteByPrimaryKey(String id) {
		return commDataConfigMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CommDataConfig record) {
		return commDataConfigMapper.insert(record);
	}

	@Override
	public CommDataConfig selectByPrimaryKey(String id) {
		return commDataConfigMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(CommDataConfig record) {
		return commDataConfigMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<CommDataConfig> findUseByCategory(String category) {
		return commDataConfigMapper.findUseByCategory(category);
	}

	@Override
	public CommDataConfig selectUseByCode(String code) {
		return commDataConfigMapper.selectUseByCode(code);
	}



}